package com.zsk.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("gop角色实体类类")
public class GopRole implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;

    @TableField("`name`")
    @ApiModelProperty(name = "name", value = "角色名", dataType = "String")
    private String name;

    @ApiModelProperty(name = "description", value = "描述", dataType = "String")
    private String description;

    @ApiModelProperty(name = "sort", value = "排序", dataType = "Integer")
    private Integer sort;

    @ApiModelProperty(name = "isInvalid", value = "是否失效", dataType = "Boolean")
    private Boolean isInvalid;

    @ApiModelProperty(name = "createTime", value = "创建时间", dataType = "Date")
    private Date createTime;

    @ApiModelProperty(name = "updateTime", value = "修改时间", dataType = "Date")
    private Date updateTime;

    @ApiModelProperty(name = "createUser", value = "创建用户", dataType = "Long")
    private Long createUser;

    @ApiModelProperty(name = "updateUser", value = "修改用户", dataType = "Long")
    private Long updateUser;

    private static final long serialVersionUID = 1L;

}